window.onload = function(){
    var strHTML = ''
    for(var i = 0;i < 30;i++){
        if(bishou.data[i]){
            strHTML +=`
                    <li>
                      <a href="${bishou.data[i].a}" title="${bishou.data[i].name}">
                        <img class="lazy" src="${bishou.data[i].img}" width="210" height="138">
                      </a>
                      <h3>
                        <a href="${bishou.data[i].a}" title="${bishou.data[i].name}">${bishou.data[i].name}</a>
                      </h3>
                        <p>
                           <strong>
                                ${bishou.data[i].jiage}
                            </strong>
                        </p>
                    </li>
            `
        }
    }
    var myul = document.getElementsByClassName('mybishou')
    var lists = document.getElementsByClassName('list-card')
    for(let i = 0 ; i < 3 ; i++){
        myul[i].innerHTML = strHTML
        lists[i].scrollTop = i * 500;
        // lists[i].scrollBy(0, 400)
        console.log(lists[1].scrollTop)
    } 
}
var bishou = {
    "data":[
        {
        "a":"",
        "img":"https://g.fp.ps.netease.com/market/file/62bf850700722e66448322fagwdOiFPg04",
        "name":"USP 消音版 | 印花集 (略有磨损)",
        "jiage":"￥940"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/62bf752e4940ea85b68c834fydVvUmBj04",
        "name":"截短霰弹枪 | 么么 (略有磨损)",
        "jiage":"￥101"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/62bf73d33edd585943b1865eZcOOJTPH04",
        "name":"AK-47 | 可燃冰 (略有磨损)",
        "jiage":"￥348.4"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/62bf6ac991df682427d38ac4MbtVXRUV04",
        "name":"反冲武器箱",
        "jiage":"￥8.49"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/6278ee9e8cdf0397c24a34b08pfsFvxw04",
        "name":"安特卫普 2022 炼狱小镇纪念包",
        "jiage":"￥13.37"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/6271db3200722e3d756512b2hKhg8pJz04",
        "name":"印花 | m0NESY（全息） | 2022年安特卫普锦标赛",
        "jiage":"￥41.8"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/6271d15bc2329a81320a0e15Y4br398504",
        "name":"印花 | Natus Vincere（金色）| 2022年安特卫普锦标赛",
        "jiage":"￥35.5"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/61ea279430422a876473f284dqidhit104",
        "name":"MP9 | 星使 (略有磨损)",
        "jiage":"￥117.66"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/614a9d687774ee8d91994156bUIRziG903",
        "name":"AWP | 九头金蛇 (久经沙场)",
        "jiage":"￥8630"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/614aa05702c9a198b6ba2633cIFq2GJb03",
        "name":"AK-47 | 黄金藤蔓 (久经沙场)",
        "jiage":"￥7036.5"
    },
    {
        "a":"",
        "img":"https://g.fp.ps.netease.com/market/file/5aa02a7a69b21a88c3aef9a70eyFYOfc",
        "name":"刺刀（★） | 大马士革钢 (久经沙场)",
        "jiage":"￥1998.77"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/614aa97a6f5a4484e02e8481Iw23iVIC03",
        "name":"弯刀（★） | 自动化 (久经沙场)",
        "jiage":"￥1079.28"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/5a9fc29b02c9a168edd9ce20iOAfAxbi",
        "name":"蝴蝶刀（★） | 虎牙 (崭新出厂)",
        "jiage":"￥7179"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/5dd3a6672786fdf481044b72NZiTxuQh02",
        "name":"流浪者匕首（★） | 狩猎网格 (破损不堪)",
        "jiage":"￥569"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/61503e6199e8d62c573cffbfKkrd3eKs03",
        "name":"蝴蝶刀（★） | 伽玛多普勒 (崭新出厂)",
        "jiage":"￥8997.5"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/5ab1d07f69b21a6fd8fd0f7eqLtQTKaa",
        "name":"M9 刺刀（★） | 伽玛多普勒 (崭新出厂)",
        "jiage":"￥4387.5"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/5a9fce91a7f252360706b5bfxy8bv7zu",
        "name":"折叠刀（★） | 渐变之色 (崭新出厂)",
        "jiage":"￥2653"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/5aaa25c820e3db89e514ececJCss5Ny1",
        "name":"刺刀（★） | 多普勒 (崭新出厂)",
        "jiage":"￥2388.5"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/5aa0296869b21a88c3aef95egkhU9lIM",
        "name":"刺刀（★） | 致命紫罗兰 (战痕累累)",
        "jiage":"￥970"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/5a9fd42816b6d4dee50cd82bMFV0ummv",
        "name":"弯刀（★ StatTrak™） | 虎牙 (崭新出厂)",
        "jiage":"￥1058"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/5aa0b8fda7501417cd2382d9Phmc4Spz",
        "name":"九头蛇手套（★） | 响尾蛇 (略有磨损)",
        "jiage":"￥4280"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/5dd4fd3e96dee41478814256AZ24PfjR02",
        "name":"流浪者匕首（★ StatTrak™） | 人工染色 (战痕累累)",
        "jiage":"￥1330"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/5aa0bbf3aa49f10140581b99oaoKKjTk",
        "name":"G3SG1（StatTrak™） | 弗卢克斯 (崭新出厂)",
        "jiage":"￥980"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/5aa0a59302c9a14a86222b164jFIWNbg",
        "name":"P90（StatTrak™） | 浅坟 (战痕累累)",
        "jiage":"￥3650"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/5aa0c35169b21ae0f25da33czOSPb212",
        "name":"AK-47 | 前线迷雾 (久经沙场)",
        "jiage":"￥1519.5"
    },
    {
        "a":" ",
        "img":"	https://g.fp.ps.netease.com/market/file/5aa0b70c46072b75a60c36a1JkUixGIi",
        "name":"M4A1 消音型（StatTrak™） | 澄澈之水 (久经沙场)",
        "jiage":"￥792"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/5aa09487ee4c0f3c4e19af2fwqA7tt4w",
        "name":"USP 消音版（StatTrak™） | 次时代 (破损不堪)",
        "jiage":"￥814.5"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/5aa09378143cfa9d30b55ca4l7r7ajvv",
        "name":"XM1014（StatTrak™） | 四季 (崭新出厂)",
        "jiage":"￥4499"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/5aa0c0b669b21a07b93173b7IRbZAGd5",
        "name":"CZ75 | 相柳 (破损不堪)",
        "jiage":"￥5499"
    },
    {
        "a":" ",
        "img":"https://g.fp.ps.netease.com/market/file/5a7ace9596dee438785f3b8b6DtKeqWe",
        "name":"印花 | FalleN | 2016年科隆锦标赛",
        "jiage":"￥885"
    }
    ]
}